STEP 15: If the random number is 2, we'll have the computer choose "paper" and a paper sprite will appear.

  • Go to and drag an if block to the bottom of your program.
  • Change the variable in the test statement to random_choice. Change the test value to 2.
  • Go to . Drag Paper into the if block.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)